<template>
	<view class="page" :style="themeColor">
		<view class="flex flex-direction flex-wrap align-stretch benben-position-layout flex paymentResults_flex_0"
			:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
			<view class='flex flex-wrap align-center justify-between paymentResults_fd0_0'>
				<view class='flex flex-wrap align-center paymentResults_fd0_0_c0' @tap.stop="handleJumpDiy"
					data-type="back" data-url="1">
					<text class='fu-iconfont2  paymentResults_fd0_0_c0_c0'>&#xE794;</text>
				</view>
				<view class='flex flex-wrap align-center'>
					<text class='paymentResults_fd0_0_c1_c0'>支付结果</text>
				</view>
				<view class='flex align-center justify-end paymentResults_fd0_0_c2'>
				</view>
			</view>

		</view>
		<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>

		<view class="flex flex-direction flex-wrap align-center justify-center paymentResults_flex_1">
			<image class='paymentResults_fd1_0' mode="aspectFit" :src='STATIC_URL+"84.png"'></image>
			<text class='paymentResults_fd1_1'>支付成功</text>
			<view class='flex flex-wrap align-center paymentResults_fd1_2'>
				<text>支付方式：</text>
				<text v-if="select_Id ==1">微信支付</text>
				<text v-if="select_Id ==2">支付宝支付</text>
			</view>
			<view class='flex flex-wrap align-center paymentResults_fd1_3'>
				<text>支付时间：</text>
				<text>{{appSystemDate}}</text>
				<text class='paymentResults_fd1_3_c2'>{{appSystemTime}}</text>
			</view>
			<button class='paymentResults_fd1_4' @tap.stop="toOrderFunc(1)">查看订单</button>
			<button class='paymentResults_fd1_5' @tap.stop="toOrderFunc(2)">返回首页</button>
		</view>



	</view>
</template>
<script>
	import Dayjs from '@/libs/day.js'
	export default {
		components: {},


		data() {
			return {
				"appCurrentTime": Date.parse(new Date()),
				"appCurrentTimer": null,
				"order_type": "",
				"order_sn": "",
				"select_Id": "1",   // 支付类型   1微信  2支付宝
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},
			appSystemDate() {
				return Dayjs(this.appCurrentTime).format('YYYY-MM-DD')
			},
			appSystemTime() {
				return Dayjs(this.appCurrentTime).format('HH:mm')
			}
		},
		watch: {},
		onLoad(options) {
			let {
				select_Id,
				order_type
			} = options
			if (order_type !== undefined) this.order_type = order_type
			if (select_Id !== undefined) this.select_Id = select_Id
			this.appCurrentTimer = setTimeout(() => {
				this.appCurrentTime = Date.parse(new Date())
			}, 1000)
		},
		onUnload() {
			clearTimeout(this.appCurrentTimer)
		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//跳转订单
			toOrderFunc(type) {
				if (type == 1) {
					if (this.order_type == 1) {
						uni.redirectTo({
							url: '/pages/wode/order/order'
						})
					} else {
						uni.redirectTo({
							url: '/pages/wode/leaseOrders/leaseOrders'
						})
					}
				} else {
					uni.switchTab({
						url: '/pages/tabBar/homePages/homePages'
					})
				}
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #fff;
		background-size: 100% auto !important;
	}

	.paymentResults_flex_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.paymentResults_fd0_0_c2 {
		padding: 0rpx 0rpx 0rpx 0rpx;
		width: 200rpx;
	}

	.paymentResults_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
	}

	.paymentResults_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: #333;
		font-weight: 500;
	}

	.paymentResults_fd0_0_c0 {
		width: 200rpx;
	}

	.paymentResults_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		line-height: 88rpx;
	}

	.paymentResults_flex_1 {
		margin: 88rpx 0rpx 0rpx 0rpx;
	}

	.paymentResults_fd1_5 {
		border: 1px solid rgba(190, 190, 190, 1);
		background: #FFFFFF;
		line-height: 72rpx;
		border-radius: 36rpx 36rpx 36rpx 36rpx;
		font-size: 28rpx;
		color: rgba(42, 42, 42, 1);
		width: 320rpx;
		height: 72rpx;
		font-weight: 500;
	}

	.paymentResults_fd1_4 {
		background: rgba(48, 131, 255, 1);
		border-radius: 36rpx 36rpx 36rpx 36rpx;
		font-size: 28rpx;
		color: #fff;
		width: 320rpx;
		height: 72rpx;
		line-height: 72rpx;
		margin: 60rpx 0rpx 32rpx 0rpx;
		font-weight: 500;
	}

	.paymentResults_fd1_3_c2 {
		margin: 0rpx 0rpx 0rpx 20rpx;
	}

	.paymentResults_fd1_3 {
		color: rgba(102, 102, 102, 1);
		line-height: 80rpx;
		font-size: 28rpx;
	}

	.paymentResults_fd1_2 {
		font-size: 28rpx;
		color: rgba(102, 102, 102, 1);
	}

	.paymentResults_fd1_1 {
		font-weight: 700;
		font-size: 32rpx;
		line-height: 105rpx;
	}

	.paymentResults_fd1_0 {
		width: 250rpx;
		height: 180rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}
</style>